package com.opensky.qatest.util.common;

import java.io.FileReader;

public class Properties {

    private static final String CONFIG_FILE = "HOMES.properties";

    private static java.util.Properties p = new java.util.Properties();

    static {
	try {
	    p.load(new FileReader(CONFIG_FILE));
	} catch (Exception e) {
	    e.printStackTrace();
	}
    }

    public static String get(String key) {
	return p.getProperty(key);
    }

    public static int getInt(String key) {
	return Integer.parseInt(p.getProperty(key));
    }

}
